iconcache: Always check return value of find_image_offset.
authorWill Newton <will.newton@imgtec.com>
Thu, 12 Jan 2012 11:14:02 +0000 (11:14 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 26 Jan 2012 03:57:52 +0000 (22:57 -0500)
commit96cfd3f8c760dfb7dfb2d7c0814400133861b770
tree03d5ecc5d169f1e962729614b01f30560d8de7c8
parentdbd66a8f02a4f26a1650ab52ca7347f98c538367
iconcache: Always check return value of find_image_offset.

find_image_offset returns 0 if it failed to find a matching image.
Check this return value in _gtk_icon_cache_get_icon to avoid
making bad memory accesses later.

Signed-off-by: Will Newton <will.newton@imgtec.com>
https://bugzilla.gnome.org/show_bug.cgi?id=667745
gtk/gtkiconcache.c